<?php
require_once("../../cofd/common.php");
$id = $_GET['id'];
$sql = "DELETE FROM post WHERE id='".$id."'";
if($conn -> query($sql)){
    echo json_encode(array("code"=>200,"msg"=>"删除成功"));
}
else{
    echo json_encode(array("code"=>400,"msg"=>"删除失败"));
}
$conn -> close();